Change in openvpn[master]: Fix for msbuild/mingw GHA failures
A message that is not in the archive (sent off-list or not yet received): gerrit.1729681493000.I8526aadb5151ddc997c836d5a691bcdfee700938@...2715...
Attention is currently required from: flichtenheld, plaisthos.
Hello plaisthos, flichtenheld,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/785?usp=email
to review the following change.
Change subject: Fix for msbuild/mingw GHA failures
......................................................................
Fix for msbuild/mingw GHA failures
Commit ("event/multi: add event_arg object to make event handling more generic") accidentally removed a variable declaration and its usage because of a rebase, this fix restore the wiped out unsigned int *persistent in multi_tcp_wait().
---
M src/openvpn/mtcp.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/785/1
src/openvpn/mtcp.c +2 -1
@@ -254,6 +254,7 @@ struct multi_tcp *mtcp) {int status; +unsigned int *persistent = &mtcp->tun_rwflags;socket_set_listen_persistent (c->c2.link_socket, mtcp->es, &c->c2.link_socket->ev_arg);
@@ -271,7 +272,7 @@ persistent = NULL; }#endif -tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , &mtcp->tun_rwflags); +tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , persistent);#if defined(TARGET_LINUX ) || defined(TARGET_FREEBSD )dco_event_set (&c->c1.tuntap->dco, mtcp->es,MTCP_DCO );#endif
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/785?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938
Gerrit-Change-Number: 785
Gerrit-PatchSet: 1
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
Attention is currently required from: flichtenheld, its_Giaan, plaisthos.
cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/785?usp=email )
Change subject: Fix for msbuild/mingw GHA failures
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
this basically undoes the "persistent" change in 757, which wasn't really needed anyway - and broke windows builds. Thanks.
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/785?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938
Gerrit-Change-Number: 785
Gerrit-PatchSet: 1
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: its_Giaan <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Wed, 23 Oct 2024 11:38:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
PATCH 1/1 Fix for msbuild/mingw GHA failures
In reply to a message not in the archiveFrom: Gianmarco De Gregori <[email protected]...>
Commit ("event/multi: add event_arg object to make event handling more generic") accidentally removed a variable declaration and its usage because of a rebase, this fix restore the wiped out unsigned int *persistent in multi_tcp_wait().
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/785
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
src/openvpn/mtcp.c +2 -1
@@ -254,6 +254,7 @@ struct multi_tcp *mtcp) {int status; +unsigned int *persistent = &mtcp->tun_rwflags;socket_set_listen_persistent (c->c2.link_socket, mtcp->es, &c->c2.link_socket->ev_arg);
@@ -271,7 +272,7 @@ persistent = NULL; }#endif -tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , &mtcp->tun_rwflags); +tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , persistent);#if defined(TARGET_LINUX ) || defined(TARGET_FREEBSD )dco_event_set (&c->c1.tuntap->dco, mtcp->es,MTCP_DCO );#endif
[Openvpn-devel] [PATCH applied] Re: Fix for msbuild/mingw GHA failures
Thanks for quickly fixing this. (Morale 1: don't do "while I am here, let's clean up this other thing" changes..., Morale 2: we need windows builds in gerrit/buildbot)
I've reworded the commit message a bit, to reference the actual commit ID in question, and to make it more clear what happened.
The patch itself is a trivial undo of those 2 lines, easily verified with "git diff HEAD~2".
(A later patch in the series actually does the same thing, when moving the code to multi_io.c - so "test the whole tree via GHA" did not expose the problem)
Your patch has been applied to the master branch.
commit 3636da3b0f168d8e06a00ec5d1f33e4b9aded262
Author: Gianmarco De Gregori Date: Wed Oct 23 13:39:23 2024 +0200
Fix for msbuild/mingw GHA failures
Signed-off-by: Gianmarco De Gregori <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/search?l=mid&[email protected]...
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by its_Giaan. ( http://gerrit.openvpn.net/c/openvpn/+/785?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: Fix for msbuild/mingw GHA failures
......................................................................
Fix for msbuild/mingw GHA failures
Commit cd8e25a6e9 removed a variable because it looked as if used only once anyway (1 assignment, 1 usage) - overlooking that on _WIN32 it's changed to NULL, which wasn't adjusted...
This fix restores the wiped out "unsigned int *persistent" in multi_tcp_wait(), undoing this particular change of the previous commit.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg29612.html
---
M src/openvpn/mtcp.c
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/85/785/2
src/openvpn/mtcp.c +2 -1
@@ -254,6 +254,7 @@ struct multi_tcp *mtcp) {int status; +unsigned int *persistent = &mtcp->tun_rwflags;socket_set_listen_persistent (c->c2.link_socket, mtcp->es, &c->c2.link_socket->ev_arg);
@@ -271,7 +272,7 @@ persistent = NULL; }#endif -tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , &mtcp->tun_rwflags); +tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , persistent);#if defined(TARGET_LINUX ) || defined(TARGET_FREEBSD )dco_event_set (&c->c1.tuntap->dco, mtcp->es,MTCP_DCO );#endif
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/785?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938
Gerrit-Change-Number: 785
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/785?usp=email )
Change subject: Fix for msbuild/mingw GHA failures
......................................................................
Fix for msbuild/mingw GHA failures
Commit cd8e25a6e9 removed a variable because it looked as if used only once anyway (1 assignment, 1 usage) - overlooking that on _WIN32 it's changed to NULL, which wasn't adjusted...
This fix restores the wiped out "unsigned int *persistent" in multi_tcp_wait(), undoing this particular change of the previous commit.
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg29612.html
---
M src/openvpn/mtcp.c
1 file changed, 2 insertions(+), 1 deletion(-)
src/openvpn/mtcp.c +2 -1
@@ -254,6 +254,7 @@ struct multi_tcp *mtcp) {int status; +unsigned int *persistent = &mtcp->tun_rwflags;socket_set_listen_persistent (c->c2.link_socket, mtcp->es, &c->c2.link_socket->ev_arg);
@@ -271,7 +272,7 @@ persistent = NULL; }#endif -tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , &mtcp->tun_rwflags); +tun_set (c->c1.tuntap, mtcp->es,EVENT_READ ,MTCP_TUN , persistent);#if defined(TARGET_LINUX ) || defined(TARGET_FREEBSD )dco_event_set (&c->c1.tuntap->dco, mtcp->es,MTCP_DCO );#endif
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/785?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I8526aadb5151ddc997c836d5a691bcdfee700938
Gerrit-Change-Number: 785
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged